package Clients;

import javax.swing.JOptionPane;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Object[] options = { "ADMIN", "USER", "EXIT" };
		while(true){
			try{
				int opt = JOptionPane.showOptionDialog(null, "WHAT DO YOU WANNA BE?", "PROFILE QUESTION",
						JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
						null, options, options[0]);
				switch(opt){
				case 0: AdminUser.main(null);
				break;
				case 1: CommonUser.main(null);
				break;
				case 2:
					System.exit(-1);
					break;
				case -1:
					System.exit(-1);
					break;
				default:
					break;
				}
			}
			catch (Exception e){}
		}

	}

}
